package com.begonzales.locker.mapper;

public class CTableColumns {
	public String columnFieldName;
	public String columnFieldType;
	public String columnMetaName;
    public Boolean isPrimaryKey = false;
    public String javaType;

    public CTableColumns( String name, String type, String meta, String javaType, boolean isKey)
    {
        this.columnFieldName = name;
        this.columnFieldType = type;
        this.columnMetaName = meta;
        this.isPrimaryKey = isKey;
        this.javaType = javaType;
    }
	public CTableColumns( String name, String type, String meta, String javaType)
	{
		this.columnFieldName = name;
		this.columnFieldType = type;
		this.columnMetaName = meta;
        this.isPrimaryKey = false;
        this.javaType = javaType;
	}
	public CTableColumns()
	{
		
	}

	public String emitResultMapColId()
	{
		String retval = "\t<id column=\""+ this.columnFieldName +"\" \t\tjdbcType=\""+ this.columnFieldType +"\"  property=\""+ this.columnMetaName +"\" />\r\n";
		return (retval);
	}
	public String emitResultMapColResult()
	{
		String retval = "\t<result column=\""+ this.columnFieldName +"\" \t\tjdbcType=\""+ this.columnFieldType +"\"  property=\""+ this.columnMetaName +"\" />\r\n";
		return (retval);
	}


	
}
